package com.hangzhou.welbeing.welbeinginstrument.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.widget.ImageView;

import com.hangzhou.welbeing.welbeinginstrument.R;
import com.hangzhou.welbeing.welbeinginstrument.utils.Utils;
import com.jcodecraeer.xrecyclerview.ProgressStyle;
import com.jcodecraeer.xrecyclerview.XRecyclerView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;


/**
 * 时间 2017 年 08 月 28.
 * 作者 Administrator  刘传华
 * 公司 杭州惟君医疗科技有限公司
 * 包名 com.hangzhou.welbeing.pregnant.welbeing_pregnant.activity
 * 工程名 welbeing_pregnant
 * @desc 热门圈子
 */
public class PopularCircleActivity extends Activity {
    @Bind(R.id.activity_popular_circle_iv_return)
    ImageView activityPopularCircleIvReturn;
    @Bind(R.id.activity_popular_circle_XRecyclerView)
    XRecyclerView activityPopularCircleXRecyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_popular_circle);
        ButterKnife.bind(this);


        Utils.setStatusBar(this,false,false);
        Utils.setStatusTextColor(true,this);

        LinearLayoutManager layoutManager = new LinearLayoutManager(this);
        layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        activityPopularCircleXRecyclerView.setLayoutManager(layoutManager);
        activityPopularCircleXRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
        activityPopularCircleXRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);

        /*activityPopularCircleXRecyclerView.setPullRefreshEnabled(false);
        PopularCircleAdapter popularCircleAdapter = new PopularCircleAdapter();
        activityPopularCircleXRecyclerView.setAdapter(popularCircleAdapter);
        popularCircleAdapter.setOnItemClickListener(new OnRecyclerViewItemClickListener() {
            @Override
            public void onItemClick(View view) {
                Intent intent10 = new Intent(PopularCircleActivity.this,PersonalArticlesActivity.class);
                startActivity(intent10);
            }

            @Override
            public void onItemFirstButtonClick(int position) {

            }
        });*/
    }

    @OnClick(R.id.activity_popular_circle_iv_return)
    public void onViewClicked() {
        finish();
    }
}
